<div class="table-responsive">
    <form id="op" action="{:U('Comment/askHandle')}" method="post">
        <table class="table table-bordered table-hover">
            <thead>
                <tr>
                    <th style="width: 1px;" class="text-center">
                        <input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);">
                    </th>
                    <th class="text-center">
                        用户
                    </th>
                    <th class="text-center" style=" width: 200px;">
                        咨询内容
                    </th>
                    <th class="text-center" style=" width: 200px;">
                        商品
                    </th>
                    <th class="text-center">
                        显示
                    </th>
                    <th class="text-center">
                        咨询类型
                    </th>
                    <th class="text-center">
                        咨询时间
                    </th>
                    <th class="text-center">操作</th>
                </tr>
            </thead>
            <tbody>
                <volist name="comment_list" id="list">
                    <tr>
                        <td class="text-center">
                            <input type="checkbox" name="selected[]" value="{$list.id}">
                        </td>
                        <td class="text-left">{$list.username}</td>
                        <td class="text-left">{$list.content}</td>
                        <td class="text-left"><a target="_blank" href="{:U('Home/Goods/goodsInfo',array('id'=>$list[goods_id]))}">{$goodsList[$list[goods_id]]}</a></td>
                        <td class="text-center">
                            <img width="20" height="20" src="__PUBLIC__/images/<if condition='$list[is_show] eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('goods_consult', 'id', '{$list.id}', 'is_show', this)" />
                        </td>
                        <td class="text-left">{$consult_type[$list[consult_type]]}</td>
                        <td class="text-center">{$list.add_time|date='Y-m-d H:i:s',###}</td>
                        <td class="text-left">
                            <a href="{:U('Comment/consultInfo',array('id'=>$list[id]))}" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                            <!--
                        <a href="javascript:;" data-href="{:U('Comment/askHandle',array('id'=>$list[id]))}" onclick="del('{$list[id]}',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                        -->
                        </td>
                    </tr>
                </volist>
            </tbody>
        </table>
        <select name="type" id="operate">
            <option value="0">操作选择</option>
            <option value="show">显示</option>
            <option value="hide">隐藏</option>
            <option value="del">删除</option>
        </select>
        <button type="submit">确定</button>
    </form>
</div>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
$(".pagination  a").click(function() {
    var page = $(this).data('p');
    ajaxGetTable('search-form2', page);
});
</script>
